package com.my.hp_hr.service;


import com.my.hp_hr.dao.DepartmentDao;
import com.my.hp_hr.entity.Department;

import java.util.List;

public class DepartmentService {
    DepartmentDao departmentDao=new DepartmentDao();
    public List<Department> departmentList() throws Exception {
       return departmentDao.departmentList();
    }
    public void departmentDelete(String id) throws Exception {
        departmentDao.departmentDelete(id);
    }

    public void departmentUpdate(Department department) throws Exception {
        departmentDao.departmentUpdate(department);
    }
    public List<Department> updateList(String id) throws Exception {
     return departmentDao.updateList(id);
    }
    public int departmentAddList() throws Exception {
      return   departmentDao.departmentAddList();
    }
    public void departmentAdd(Department department) throws Exception {
     departmentDao.departmentAdd(department);
    }
  /*  public List<Department> getPageList(String pageNo) throws Exception {
     return   departmentDao.getPageList(pageNo);
    }*/
    public int getPageCount() throws Exception {
      return departmentDao.getPageCount();
    }
}
